package com.ksm.version.mapper;

import com.ksm.version.domain.SysDeployHistory;
import com.ksm.version.domain.SysHistoryAndPackageVersion;
import com.ksm.version.domain.SysServerAndPackageVersion;
import com.ksm.version.domain.SysVersionManage;

import java.util.List;

public interface ProjectMapper {

    Integer updateProject(SysVersionManage sysVersionManage);

    Integer updateHistory(Integer id);

    SysVersionManage findOne(Integer id);

    List<SysVersionManage> findAll();

    Integer addNewProject(SysVersionManage sysVersionManage);

    Integer addNewServerMid(SysServerAndPackageVersion version);

    Integer findOneByFileName(SysVersionManage manage);

    Integer findOneByDeployId(SysVersionManage manage);


    Integer updateDeployHistory(Integer id);

    Integer updateRemoteDep(Integer id);


    Integer updateTime(SysVersionManage manage);

}
